﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 9/2/2009
 * Time: 2:38 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;

namespace Buaya.Util
{
	/// <summary>
	/// Description of ConvertUtility.
	/// </summary>
	public class ConvertUtility
	{
		public ConvertUtility()
		{
		}
		
		public static double ToDouble(object val)
		{
			double ret = 0;
			try { ret = Convert.ToDouble(val); }
			catch {}
			return ret;
		}
		
		public static int ToInt32(object val)
		{
			int ret = 0;
			try { ret = Convert.ToInt32(val); }
			catch {}
			return ret;
		}
	}
}
